package com.zilu.digitaltwin.common.enums;

public enum BuildingHeightTypeEnum {
    LOW_STOREY(01, "低层住宅"),
    MULTI_STOREY(02, "多层住宅"),
    MIDDLE_AND_HIGH_STOREY(03, "中高层住宅"),
    HIGH_STOREY(04, "高层住宅"),
    SUPER_HIGH_STOREY(05, "超高层住宅"),
    ;
    private final int no;
    private final String name;

    BuildingHeightTypeEnum(int no, String name) {
        this.no = no;
        this.name = name;
    }

    public int getNo() {
        return no;
    }

    public String getName() {
        return name;
    }

    public static String getName(int no) {
        for (BuildingHeightTypeEnum value : values()) {
            if (value.no == no) {
                return value.name;
            }
        }
        return null;
    }


}
